package cn.wolfcode.enums;

import lombok.Getter;

@Getter
public enum ConsumptionReportEnums {
    BUSINESS("门店","business.`name`"), //门店
    YEAR("年","DATE_FORMAT(consumption.pay_time,'%Y')"), //年
    MONTH("月"," DATE_FORMAT(consumption.pay_time,'%Y%m')"), //月
    DAY("日","DATE_FORMAT(consumption.pay_time,'%Y%m%d')"); //日

    private String name;
    private String sql;

    ConsumptionReportEnums(String name,String sql){
        this.name = name;
        this.sql = sql;
    }
}
